package com.day1909d_xiangmu.weinfo.model;


import com.day1909d_xiangmu.weinfo.base.BaseModel;
import com.day1909d_xiangmu.weinfo.bean.columnBean;
import com.day1909d_xiangmu.weinfo.net.HttpUtil;
import com.day1909d_xiangmu.weinfo.net.ReonClick;
import com.day1909d_xiangmu.weinfo.net.ResultSubscriber;
import com.day1909d_xiangmu.weinfo.net.RxUtils;



public class SectionsModel extends BaseModel {
    public void getSection(final ReonClick<columnBean> click) {
        addcompositeDisposable(
                HttpUtil.getInstance()
                        .getZhuanLanService()
                        .getSection()
                        .compose((FlowableTransformer<? super NaviBean, ?>) RxUtils.rxSchedulerHelper())
                        .subscribeWith(new ResultSubscriber<columnBean>() {
                            @Override
                            public void onNext(columnBean columnBean) {
                                click.cheng(columnBean);
                            }
                        })
        );
    }


}
